package com.hhx.ec.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 *  负载
 * @author Administrator
 *
 */
@Configuration
public class RibbonConfig {
	
	@Bean
	@LoadBalanced//开启负载
	RestTemplate  restTemplate() {
		return new RestTemplate();
	}
	
	
	

}
